luci-app-statistics: remove rrd path triple escape
authorPhilip L. McMahon <[email protected]>
Sat, 27 Mar 2021 09:06:42 +0000 (11:06 +0200)
committerHannu Nyman <[email protected]>
Sat, 27 Mar 2021 09:06:42 +0000 (11:06 +0200)
Fixes rendering errors when RRD file names contain IPv6 addresses and the
colon (":") characters are triple escaped.

Adapts the Lua-specific fix in #4340 to Javascript.

Signed-off-by: Philip L. McMahon <[email protected]>
(cherry picked from commit d44302b3ac7a5f687c4a2bb6707cc3d922651f82 of PR #4358)

applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js

index 322eee137c8a266bf3c037b2338769c88b7e4c27..19e34e4bc6eae6652ce51117d3a52db7451b27b1 100644 (file)
@@ -376,7 +376,7 @@ return baseclass.extend({
 
                function __def(source) {
                        var inst = source.sname,
-                           rrd  = source.rrd.replace(/[\\:]/g, '\\$&'),
+                           rrd  = source.rrd,
                            ds   = source.ds || 'value';
 
                        _args.push(